using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace PSE.Hosting.ServiceHoster.Configuration
{
    [Serializable]
    public class AssemblyElement
    {
        public AssemblyElement() 
        { 
        }

        public AssemblyElement(string fullName, string codeBase)
        {
            this.FullName = fullName;
            this.CodeBase = codeBase;
        }

        private string _fullName;

        public string FullName
        {
            get { return _fullName; }
            set { _fullName = value; }
        }

        private string _codeBase;

        public string CodeBase
        {
            get { return _codeBase; }
            set 
            { 
                _codeBase = value;
                _fileName = Path.GetFileName(value);
            }
        }

        private string _fileName;

        public string FileName
        {
            get { return _fileName; }
        }
    }
}
